package com.qf.shopping.dto.memberDTO;

import com.qf.shopping.pojo.member.MemberProfile;

public class MemberDTO {

    private long id;
    private String username;
    private String nickname;
    private String name;
    private long gender;
    private long registerTime;

    public MemberDTO() {
    }

    public MemberDTO(MemberProfile m){
        this.id=m.getId();
        this.username=m.getUsername();
        this.nickname=m.getNickname();
        this.name=m.getName();
        this.gender=m.getGender();
        this.registerTime=m.getRegisterTime();
        System.out.println(m.getRegisterTime());
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getGender() {
        return gender;
    }

    public void setGender(long gender) {
        this.gender = gender;
    }

    public long getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(long registerTime) {
        this.registerTime = registerTime;
    }

    @Override
    public String toString() {
        return "MemberDTO{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", nickname='" + nickname + '\'' +
                ", name='" + name + '\'' +
                ", gender=" + gender +
                ", registerTime=" + registerTime +
                '}';
    }
}
